Tiny cleanup.
authorPaolo Borelli <pborelli@gnome.org>
Sat, 26 Nov 2011 20:09:25 +0000 (21:09 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Thu, 1 Dec 2011 00:22:38 +0000 (01:22 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=640317

gtk/gtktextdisplay.c

index 6c2eddf9a7e12fc384d0633d44fc4a6f8656955b..360f515d50b53de33bb757b9509cb8488d22a07a 100644 (file)
@@ -825,7 +825,7 @@ gtk_text_layout_draw (GtkTextLayout *layout,
   GSList *cursor_list;
   GtkTextRenderer *text_renderer;
   GtkTextIter selection_start, selection_end;
-  gboolean have_selection = FALSE;
+  gboolean have_selection;
   GSList *line_list;
   GSList *tmp_list;
   GList *tmp_widgets;
@@ -852,10 +852,9 @@ gtk_text_layout_draw (GtkTextLayout *layout,
 
   gtk_text_layout_wrap_loop_start (layout);
 
-  if (gtk_text_buffer_get_selection_bounds (layout->buffer,
-                                            &selection_start,
-                                            &selection_end))
-    have_selection = TRUE;
+  have_selection = gtk_text_buffer_get_selection_bounds (layout->buffer,
+                                                         &selection_start,
+                                                         &selection_end);
 
   tmp_list = line_list;
   while (tmp_list != NULL)